package tw.com.softleader.movie.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tw.com.softleader.movie.dao.MovieDao;
import tw.com.softleader.movie.entity.Movie;
import tw.com.softleader.movie.service.MovieService;

@Service(value="myService") //aaServiceImpl
public class AaServiceImpl implements MovieService {
	private Logger log = LoggerFactory.getLogger(this.getClass());

	@Autowired // @Inject
	private MovieDao movieDao;
	
	public List<Movie> getAll() {
		
		log.debug("Aservice");
		return movieDao.getAll();
	}
	
}
